
        <link rel="stylesheet" type="text/css" href="<?php echo base_url()?>/public/assets/css/package.css">
        
        <div class="contain">
            <a href="javascript:void(0);" class="weui_media_box weui_media_appmsg" style="position: relative;border-bottom:1px solid #b9b9b9">
                <div class="weui_media_hd" >
                    <img class="weui_media_appmsg_thumb" src="<?php echo base_url()?>/public/assets/images/class.jpg" alt="">
                </div>
                <div class="weui_media_bd" >
                    <h4 class="weui_media_title"><?php echo $course_package_info['book_title']?></h4>
                    <p class="weui_media_desc">共<em><?php echo $order_info['hours']?></em>课时，剩余<em><?php echo $order_info['surplus_hours']?></em>课时</p>
                </div>
                <?php if(($order_info['status']==1 || $order_info['status']==5) && $order_info['surplus_hours'] > 0){?>
                <a class="btn1" href="/purchasecourse/?order_id=<?php echo $order_info['id']?>">立即约课</a>
                <?php }?>
            </a>
            <section style="margin-top: 5px;">
                <p class="text"><span class="icon"><i class="fa fa-circle"></i></span>订单状态：
                <?php if($order_info['status']==0){?>待支付
                <?php }elseif ($order_info['status']==2){?>已退款
                <?php }elseif ($order_info['status']==3){?>划课待审核
                <?php }elseif ($order_info['status']==4){?>划课审核失败
                <?php }elseif ($order_info['status']==6){?>已过期
                <?php }else{ echo $order_info['surplus_hours']<=0 ? '已用完' :'未用完'; }?>
                </p>
                <p class="text"><span class="icon"><i class="fa fa-circle"></i></span>订单编号：<a href="javascript:void(0);" style="color:#918f8f;"><?php echo id_encode($order_info['id']);?></a></p>
                <p class="text"><span class="icon"><i class="fa fa-circle"></i></span>购买时间：<?php echo $order_info['pay_time'];?></p>
                <p class="text"><span class="icon"><i class="fa fa-circle"></i></span>支付方式：<?php echo $order_info['pay_way']==1 ? '微信支付' : '划课购买';?></p>
                <p class="text"><span class="icon"><i class="fa fa-circle"></i></span>支付额度：<?php echo $order_info['pay_fee']?>元
                <?php if(($order_info['status']==1 || $order_info['status']==5) && $order_info['surplus_hours'] > 0){?>
                
                <?php }else{?>
                ／<?php echo $order_info['hours'];?>课时
                <?php }?>
                </p>
                <?php if($order_info['status']==4){?>
                <p class="text"><span class="icon"><i class="fa fa-circle"></i></span>划课审核失败原因：</p>
                <p class="text"><?php echo $order_info['reason']?></p>
                <?php }?>
            </section>
            <section>
                <p class="text">约课记录（<em><?php echo count($book_list)?></em>）</p>
            </section>
            <?php if(!empty($book_list)){foreach ($book_list as $val){?>
            <div class="record">
                <div class="top">
                    <p><?php echo $course_package_info['book_title']?></p>
                    <span><?php echo $book_status[$val['status']]?></span>
                </div>
            </div>
            <a class="weui_cell" href="javascript:;">
                <div class="weui_cell_hd"><img src="<?php echo $val['teacher_avatar'];?>" alt="" style="width:20px;margin-right:5px;display:block"></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <p><?php echo $val['teacher_name']?></p>
                </div>
                <span class="weui_cell_ft"></span>
                
            </a>
            <section>
                <p class="text1"><span class="icon1"><i class="fa fa-circle"></i></span><?php echo $val['book_date']?>（<?php echo $weekArr[date('w',strtotime($val['book_date']))]?>）<?php echo $val['book_date_start']?>~<?php echo $val['book_date_end']?></p>
                <p class="text1"><span class="icon1"><i class="fa fa-circle"></i></span><?php echo $val['address']?></p>
                
            </section>
            <?php }}else{?>
            <div class="record">
                <div class="top">
                    <p style="margin-left: 35%;">没有约课记录</p>
                </div>
            </div>
            <?php }?>
        </div>

  